package container

import (
	"net"
)

var (
	RUNNING             = "running"
	STOP                = "stopped"
	Exit                = "exited"
	DefaultInfoLocation = "/var/run/mydocker/container/%s/"
	ConfigName          = "config.json"
	LogFile             = "container.log"
	RootUrl             = "/root"
	MntUrl              = "/root/mnt/%s"
	WriteLayerUrl       = "/root/writeLayer/%s"
)

type ContainerInfo struct {
	Pid         string `json:"pid"` 		// 容器的init进程在宿主机上的 PID
	Id          string `json:"id"`  		// 容器Id
	Name        string `json:"name"`  		// 容器名
	Command     string `json:"command"`    	// 容器内init运行命令
	CreatedTime string `json:"createTime"` 	// 创建时间
	Status      string `json:"status"`     	// 容器的状态
	Volume		string `json:"volume"`
	PortMapping []string `json:"port_mapping"`
	IP 			net.IP	`json:"ip"`
	NetworkName string  `json:"network_name"`
}